package ljy.day2;

public class StringDeo1 {
    public static void main(String[] args) {


        char result = "abc".charAt(1);
        System.out.println(result);

        int a1 = "abc".codePointAt(1);
        System.out.println(a1);

        int a2 = "abc".codePointBefore(1);
        System.out.println(a2);

        int a3 = "abc".codePointCount(1, 3);
        System.out.println(a3);

        int a4 ="abc".compareTo( "efg");
        System.out.println(a4);

        String o1="abc".concat("def");
        System.out.println(o1);

        boolean o2="abc".contains("e");
        System.out.println(o2);

        boolean o3="abc".contentEquals("be");
        System.out.println(o3);

        String str1 ="admin";
        String str2 ="abc";
        StringBuffer strbuf= new StringBuffer(str1);
         System.out.println(str2.contentEquals(strbuf));
    }
}
